// src/router.ts
import { createRouter } from "@tanstack/react-router";
import { routeTree } from "./routeTree.gen";

// 创建路由实例
const router = createRouter({
  routeTree,
  defaultPreload: "intent",
});

// 导出类型和路由实例
export default router;
export type Router = typeof router;
    